Quick Command Reference

Basic Structure:
==================
(Outputname=Command1)
==================

Each label to the LEFT of the "=" represents a output in mame.  What you put to the RIGHT of the equal sign tells mamehooker what to do when this state changes.  
Note that I said CHANGES, not ON.  The same command will fire when a light output (for example) turns on and off.  The actual value of the output can be passed via special variables,
but that will be explained later.

Multiple Commands:
============================
(Outputname=Command1,Command2)
============================
If you want mamehooker to do more than one thing when an output is fired (say turn on two different leds) you can use multiple commands by putting a "," between them.  
Please note that there shouldn't be any spaces between the commands... just the comma.

Different Commands for each state:
=============================
(Outputname=Command|Command)
=============================
If you want to use completely different commands for each state of your output simply place a "|" between each command.  The first command will be for when the ouput's value is 0,
the second for 1, ect.....
Please note that you must have a command present for every possible value the output can be or else it can crash mamehooker.

Special Variables:
==================
As explained earlier, the command you type to the right is used whenever the state changes, regardless of value.  This means that without special values for some of a commands values,
the command would set a device the first time the mame output changes and continue to set the device to THE SAME VALUE over and over.  Special variables allow you to set the varaible in a commmand
not to a specific value, but to the current value of your output.

%s% = the current value of the output that just fired.  You will use this the most.  

%b1% to %b10% = the value of user-defined buffers... see the readme.txt for details.

%outputname% = the value of any output, not just the one you are working with.  "outputname" would be replaced with any output. (Labels to the LEFT of the equals sign).